// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "Character/BaseCharacter.h"
#include "Components/ProgressBar.h"
#include "HealthBarWidget.generated.h"

/**
 * 
 */
UCLASS()
class COMBAT_GAME_CPP_API UHealthBarWidget : public UUserWidget
{
	GENERATED_BODY()

public:
	virtual bool Initialize() override;

	UPROPERTY(meta=(BindWidget))
	UProgressBar* HealthBar;

	UPROPERTY(BlueprintReadWrite)
	ABaseCharacter* Owner;

	UFUNCTION(BlueprintCallable)
	float GetHealthProgress();
};
